/**
 * 表格
 */
export const tableColumns = [
  { code: 'id', name: '序号', align: 'center', width: 56 },
  { code: 'phoneNum', name: '手机号', align: 'center', width: 109 },
  { code: 'useTo', name: '用途', align: 'center', width: 256 },
  { code: 'keyword', name: '关键字', align: 'center', width: 256 },
  { code: 'realNameAuth', name: '实名认证', align: 'center', width: 80 },
  { code: 'thali', name: '套餐', align: 'center', width: 256 },
  { code: 'phoneName', name: '手机', align: 'center', width: 256 },
  { code: 'slot', name: '卡槽', align: 'center', width: 56 },
  { code: 'operator', name: '运营商', align: 'center', width: 68 },
  { code: 'servicePassword', name: '服务密码', align: 'center', width: 80 },
  {
    code: 'status',
    name: '状态',
    align: 'center',
    width: 56,
  },
  {
    code: 'operation',
    name: '操作',
    align: 'center',
    width: 96,
  },
];

export const getDataSource = (data) => {
  return data.map((t) => ({
    ...t,
    showDetail: false,
  }));
};
